Add minImgSize option. Closes #665.