A raster image always outlives it's decoder so we can refer to it using a reference instead of a pointer.