Img widths and heights are now automatically detected

No need for the width and height properties anymore.

also added a nonfunctional 'cleanup' function