added scale2x implementation