Saves width and height of objects.