enabled photo gallery function for iPad