<?php
require_once('pclzip.lib.php' );
$nth = new PclZip('test.nth');
$content = $nth->extract(PCLZIP_OPT_BY_NAME,'theme_descriptor.xml',PCLZIP_OPT_EXTRACT_AS_STRING);
$content = $content[0]['content'];
$teg = simplexml_load_string($content)->wallpaper['src'] or
$teg = simplexml_load_string($content)->wallpaper['main_display_graphics'];
$image_resourse = $nth->extract(PCLZIP_OPT_BY_NAME,"$teg",PCLZIP_OPT_EXTRACT_AS_STRING);
$image_resourse = $image_resourse[0]['content'];
header( "Content-type:image/jpeg" );
print $image_resourse;
?>