fix image loader
add crash reporting
code cleanup