guarding against image source == NULL

Changed this code to do nothing when image source = Null, which should prevent the crash one user saw with CFRelease.