ChunkyPNG has a [`rect`](https://www.rubydoc.info/gems/chunky_png/ChunkyPNG%2FCanvas%2FDrawing:rect) method which could be really beneficial here.