Fix image temp file