A man who uploaded fake nudie pics of of a woman online to get back at her for exposing his affair with a married woman was given 10 days of detention.