Fixed image temp copy bug.