Shortend similar debug output and fixed gzip image bug