Fixed a few issues in Media.Photo.