Fixing photo loading bug in map