added photo loading bug fix