Changed ImageHeight and ImageWidth to attributes.