Updated frame dimensionality based on number of surfaces
Updated frame dimensionality based on number of surfaces