frame noCss3: image scaling logic