changing photo requests to use file protocol, which avoids the deadlock