Corrected width and height derivation in basemap