use image naturalWidth instead of width
refactor: make retries an option
update docs for solver