Prevent images from getting to big
Improve error handling (missing img file)