#5329: Fixed image export

Incorrect extension operating.