Getting size of screen for figure