Fixed photo saving issue, changed photo compression to jpeg to work with
PHP pel libraries