added support of device photo gallery