How to highlight the screenshot image with elements bounds properties?


I am trying to get the screenshot image of the app and by using page source’s bounds property. I want to highlight the elements. I m try to add image as html background and using div tags to highlight the positions that the android elements will appear. Is this way is correct or not ? Or someone else can propose me a better solution to do that ?

Thank you