Trying to get the width and height of frame