Added ability to load image from photo gallery.