Total rewrite of image_parsing, merge with kittens

Compeltely rewrote the image_parsing script, using more knowledge I
have now and having it be fully compliant with PEP8. I also merged it
with the kittens script.