image_buffer: added a functionality to save compressed PNG images.
Prepared the code to test the PNG functionality.
Added a measure of the time needed to store the images.