Changes for photo loading and display