moved viewport and size into Graphics