Created image converting functions for reading palettes and images from the rom.