A fix for issue #2

Hi, 

Please have a look at this commit, I tried to fix the issue#2.

This commit is inspired from this link:-
http://developer.android.com/training/displaying-bitmaps/load-bitmap.html