fix bug on saveing foto with correct suffix if not still saved on DB #233