fix image bugs

fix image bugs
#20