Translates a cursor position to an image number
The units used for x and y are the same as are sent to the MouseDown and MouseMove events, enabling easy identification of the location clicked by the user.
Note that an image cell is identified, rather than an image, so the ImageIndex returns an appropriate image even if a point is given within the cell, but outside the image actually displayed.