Luke Miles also admitted to threatening to disclose sexual images of a woman