Changed onPhotoURISuccess to write to smallImage