function photo($photo) {
list($path, $name, $ext) = File_Util::splitFilename($photo);
$tpl =& new HTML_Template_Sigma('.');
function photo($photo) {
list($path, $name, $ext) = File_Util::splitFilename($photo);
$tpl =& new HTML_Template_Sigma('.');
$img->load($photo);
// If image is larger than the maximum size, we resize it.
if ($img->img_x > $size or $img->img_y > $size ) {
$img->load($photo);
// If image is larger than the maximum size, we resize it.
if ($img->img_x > $size or $img->img_y > $size ) {