Refactor ImageUtils to eliminate extra copy of image data that was being done.  This yields a small
(but noticable) performance improvement.

Add in unit tests to validate that ImageUtils works correctly.

Change-Id: I3f5a8512534c0193f99c0e514066dbd02746a6bc
11 files changed