image: add Encode/Decode/DecodeConfig/Load/Save func.