This is tricky, as there is a chicken and egg problem (the projection definition receives the dimensions of the frame).