Fixes #6 and implements #3 and #7. Also added #4 using the Picture::check method.