fixed image code