Added gamma correction table, moved types to separate header file