resetImage defined