Updated BaseEntity class

Class simplified. size attribute divided to width and height.