diff --git a/internal/pixels/pixels.go b/internal/pixels/pixels.go
index <HASH>..<HASH> 100644
--- a/internal/pixels/pixels.go
+++ b/internal/pixels/pixels.go
@@ -177,6 +177,7 @@ func (p *Pixels) CreateImage(context *opengl.Context, width, height int, filter 
 			return nil, err
 		}
 	}
+	p.image = gimg
 	p.basePixels, err = gimg.Pixels(context)
 	if err != nil {
 		return nil, err
pixels: Bug fix: Update image member when creating a new image