configured rest communication with server. trying to get animation with photo loading to work