diff --git a/src/pixie/images.nim b/src/pixie/images.nim
index c3e82fb..540bf46 100644
--- a/src/pixie/images.nim
+++ b/src/pixie/images.nim
@@ -63,7 +63,7 @@ proc dataIndex*(image: Image, x, y: int): int {.inline, raises: [].} =
 template unsafe*(src: Image): UnsafeImage =
   cast[UnsafeImage](src)
 
-template `[]`*(view: UnsafeImage, x, y: int): ColorRGBX =
+template `[]`*(view: UnsafeImage, x, y: int): var ColorRGBX =
   ## Gets a color from (x, y) coordinates.
   ## * No bounds checking *
   ## Make sure that x, y are in bounds.