Added a helper method, createColorFromRGB, to create 24 bit colors from 3 bytes