fix for optional photo