determine scene width and height before creating product