A man accused of sending unwanted sexual images has appeared in court.