Fix rectangle drawing in zoomed image editor.