fix image handling bug -- image resize geometry