Added autorotation of photo in getImageByURL()