adding image and handle of 'out of memory'