attempt to fix image drawing