Getting width/height from API.

Applying what I learned from colorclass.