fixed bugs with photo export