issue #6
moved gallery detection to DownloadImage()