Speed up resizing using scale2x algorithm by factor of 2, added scale3x implementation