Added img stuff, probably won't work elsewhere due to paths. Apparently there are memory leaks, haven't looked much into it yet.