simplify logic
add back software renderer functions that are not implemented yet
fix image format