split crop to crop and scale, add encodeFrames/decodeFrames