Fixed unintended modification of input image
Merge pull request #15 from ayshih/smr2

Fixed unintended modification of input image