added image dimension parsing
fixed lots of memleaks (should've read the docs :o)
updated to newest plugin SDK
made some generall optimizations and stuff