Added debugmessages to CImage