Fixing corrupted png file