FLUID-5554: Calculate initial pixel size based on root instead of container