fix image scale bugs