Image class serialization works