Adjusted code for Android versions 2.3 

https://github.com/coomar2841/image-chooser-library/issues/7