Guidance on selecting pre-images

I see. This is going to help but unfortunately no one is willing to pick it up to implement it.

So the only option is hardcode the list.