fix image resizing on the exchange

Fix bug where images in the exchange would look skewed because it was scaled incorrectly.

Includes a bugfix for publishing to the exchange