fixed #56 and refactorized some code, GetImage doInBackground method