image serialize => marshal