How to know whether dynamic image loaded or not? cache system

Helllo, everyone
I’m want to save dynamic image as cache after loaded, is this possible to get image is loaded or not ?

or anyone can tell me how to store dynamic image as cache.