Add some functions to scale sizes maintaining aspect ratio