Man accused of watching child porn is sentenced