rfactoring GetImageTask