Flip image

Also refactored the ResourceManager code, but that will come in another PR. ref issue #98