Fix for image field serialization