fixed getcolor bug in indexed mode, fixed cursors