[Mac] Improvements in the dialog backend
[Mac] Fixes in the image builder backend

The origin of the drawing context must be the top left corner
[Mac] Make image handle work on Lion
[Tests] Show a diff image in the image comparison dialog