add image limit config ; add fallback mechanism. Fixes #15