Changes for photo loading