Adds scenery dimension checks before setPixel

- The coordinates of the draw instruction are now checked to ensure
that they’re valid scenery dimensions. This ought to prevent
segmentation faults if writing to memory outside the allocated range.