More refactoring

Added image.c along with some utility functions for images

Moved get_block_colour() into render_chunk_blockmap()

Moved some constants

Got rid of some duplicate code in combine_alpha()