check that image source exists before attempting to draw to canvas