<?php
if (isset($tpl['arr']) && !empty($tpl['arr']) &&
	!empty($tpl['arr']['image_original']) && is_file(PJ_INSTALL_PATH . $tpl['arr']['image_original']))
{
	?>
	<form action="" method="post" class="form pj-form">
		<input type="hidden" name="id" value="<?php echo $tpl['arr']['id']; ?>" />
		<input type="hidden" name="x" value="" />
		<input type="hidden" name="x2" value="" />
		<input type="hidden" name="y" value="" />
		<input type="hidden" name="y2" value="" />
		<input type="hidden" name="w" value="" />
		<input type="hidden" name="h" value="" />
		<img src="<?php echo PJ_INSTALL_URL . $tpl['arr']['image_original']; ?>?<?php echo rand(1, 999999); ?>" alt="" style="border: none" />
	</form>
	<?php
}
?>