fixed issue with empty photogallery application when we call it to select picture