@Gargron have you tried to use sync.Pool qui reuse objects instead reallocating one for each image?
https://godoc.org/sync#example-Pool
@Keltounet Seems like that is exactly what I need to do.
@Keltounet Seems like that is exactly what I need to do.