Fix how largeImageThreshold option is set

The change in #22 didn't allow setting `largeImageThreshold` to `0`. This fixes it.