Zipped images/html page question

Is there a way to integrate the following function into a HTML-page: The pictures that are to be shown on the web-page are in a .zip-file. Every time the HTML-file is opened, the pitures are first unzipped into RAM and then shown on the web-page. Can this be done somehow?