add header to image export
compress image to file