fixed image and resume problem