Added use of real image and compression of image