Add detection of image dimensions.
Merge pull request #2 from mapbox/dimensions

Add detection of image dimensions.