added code to expand the zipped image