Added dim_fraction support for image inputs