added ability to get images from gallery
fix for images