Added parsing x,y,width and height attributes