fix image dimension