Make RawImage store images as a shared pointer to a vector