Improves error messages in image and document loop
Improved (again) error messages
Merge pull request #258 from roadster31/error_messages

Error messages