fix image scaling