Move functionality to functions

Add color struct (uint8 r, g, b)
Add getColorAtPoint for getting from framebuffer
Add savePixelsToFile for saving uint8 arrays
Make some global variables