fix image dimensions