Major refactoring of object image handling:
* Use integer constants instead of strings.
* Fetch object images by instance and flags.
* Add @2x versions of object images (currently unused).
* Clean up and format code.