Is it possible to store images on variables?

Technically yes (see here for a roundabout example of how) but for most intents and purposes, the answer is “no”. Fortunately, it is possible to store images in named clipboards (along with rich text and other non-plain text objects) which can be used in very similar ways to variables depending on your purpose.

2 Likes