Image loading fixes
Fixed layer stack flattening
Line and Rectangle tools work again
Color picker works again