merged get_width and get_height