Get width, height from environment if available

 - Refactor str -> int handling
 - Default to environment, falling back to preset width/height