Made interface more generic. Added convenience functions for ComplexImage in Boxed so the functions can be composed.