Fixing the way the Controller was handling invalid file loading
Improving unit tests for the pencil paint operation