Fixed intensity at cursor position problem when an image's origin is
top right or bottom left