make sure we have an image path before stripping it