adjusted photo loading in detail pages