fix owner-photo loading function