Set image format

For conversion between jpeg/png