Fixed the PhotoGallery for device
Merge remote-tracking branch 'origin/master'