Move image serializer to CmfMedia