add get_screen_resolution function