Insert figure on top of an image

Hi @josemanuu welcome to the forum! You can add the image either as a layout image (https://plot.ly/python/images/) or as an image trace (https://plot.ly/python/imshow/) if you would like to interact more with the image (hover, selection, etc.). As for adding rectangles, you can add shapes to the figure, see https://plot.ly/python/shapes/. Or do you want to add the shapes by drawing (click and drag) on the image? The latter feature is not available yet with plotly/dash but we’re experimenting with it.