Again, see https://github.com/sympy/sympy/pull/7329#discussion_r10868697

See how `imageset` and `_eval_imageset` implemented.