Update func.php

Updated snippets to display proper image 'format'.