use memcpy to copy color image instead of nested for-loops
Merge pull request #32 from youtalk/memcpy-color-image

use memcpy to copy color image instead of nested for-loops
Issue #25: Color image is wrongly formed because the step field is not set