fix: issue when img_parser raises exceptions. Fixes #7