Added functionality to load images from photo library