Give defaults to evil globals struct.
Make Image struct for buffer, width, height, depth.
Fix double free.