Improved traceability of image sizes, logging, main loop