simplify image unmarshal