fix photo loading