Add support for scale factor per file