Made image objects partially serializable.