Provide exit codes to parent process

Similar to the regular `diff` command this change enables imagediff to return an exit status of 0 if the images are similar and 1 if the images are not. 

This would make shell scripting around imagediff a lot easier.