For consistency with MediaWiki, rename all references to type 'photo' to 'image'

**DO NOT MERGE YET** breaks production parsoid