Added frameskipping and keyskipping, fixed speed issues on color calcs