Refactor logo scaling.