Methods and Trends in Detecting Generated Images: A Comprehensive Review