Fixed photo loading bug