Online Compression Of Image