performance: allow bounds to be specified so that we don't iterate over pixels that don't exist
Merge remote-tracking branch 'markrileybot/master'

* markrileybot/master:
  performance: allow bounds to be specified so that we don't iterate over pixels that don't exist