Some functions for handling Images on MAC OS X