I don't think that would be safe, as this code is also used by Openseadragon, which does need the dimensions, as it need to transform to the normalized coordinates.