Imagedata is faster then compressing it to jpeg