Use the JMS Serializer to serialize the image objects