Added check for 2x variant when document is served via file URI scheme