Added in serialization code (needed for context actors/messages).
Refactored image code so that group is now a constructor param.