Made MImage implement Serializable.