Don't delete image if path is not valid