Add ImageProvider spec
Add tests for failures