Drawing two resizable rectangle on image ?

Drawing two resizable rectangle on image ?

I want to draw two resizable rectangle on an image to get its height and width .
Currently i am able to draw single rectangle on image but when i try to draw second rectangle first one is erasing.

Thanks for any help...