Fixed upside-down .bmps and min image size

- Fixed .bmps displaying upside down.
- Fixed min image size setting not being used when it should have been.