fix images in multi-thread by doing shallow-copies

BUG=skia:
TBR=mtklein@google.com

Review URL: https://codereview.chromium.org/791473006
add image-from-codec to c api

BUG=skia:
TBR=

Review URL: https://codereview.chromium.org/822203002