fix image drawing