added compression to jpeg stream
fixed indentation in BeamInfo