I did something similar. I’m running Python script that monitors PPTX file, converts it, if it has been changed and uploads it to Xibo. I documented it in my post - Displaying a local MHT file - is it possible? - #13 by lpriit
If you just want to replace already existing image, you don’t need to edit layouts.