var img_to_post:ByteArray = new JPGEncoder(85).encode(pic);
var img_to_post:ByteArray = PNGEncoder.encode(pic);