Add generic behaviour in showphoto of html.form.class.php