Application notification when new image is downloaded


is there any trigger that can be received in the container application whenever a new images is available and download starts?
I’d like to do some application context cleanup before the new version is deployed and a trigger for that would be highly appreciated.
In the console window in the dashboard I can see the brown text “Downloading …” but can I also react from within the application?
I’m running a nodejs application in my container