repainting img after open