fixed issue with choosing picture from gallery