moved some stuff around
cleaned up some code
added method to split RGBA in integer to 4 seperate channel integers