added a getHeight and getWidth functions for entity