fix coordinates to image pixels