Fixed NSEncoding for photos.