Removed lua_image.*
Some minor refactoring and introduction of destructor for userdata
Add pipeline __gc