Dinamic ExPicture component

Hi Gents,
I’m working on a project using the ExPicture component on a 7" Intelligent series.
I need to adapt the W and H component attributes to the dimension of the picture loaded.
At the moment these attributes are settable during the HMI developing only

Any idea how to make these parameters “dynamics” during the normal use of the display?

Many thanks
Massimo