Fix log output and error image loading, fix resize of content opened via Dock, minor cleanups