Add image output limit

See issue #10