avoided regenerate image from file