fix bug in color picker code which caused selection in cropped images to fail