Add image serialization