fix for broken images and binary files + updated the snippet transform stream