Added code to pick image directly from the gallery