Implemented the CGImageGetSize() function.