Fixed cloneImage bugs with bounds and YCbCr case.