image compression - signed off by Pierre Lavaux <pierre.lvx@gmail.com>