Memory optimization on photo load at place activities