Improved debugging images output