Added getWidth, getHeight and getTile API methods
Initialize dx and dy with 0
Use type size_t instead of (unsigned) int

Moreover, width and height is passed to property using initialization
list