generalized fetch image task to also support non view targets