Refactored drawing and fixing memoryleak
Fixed blobcoll-destruction and memoryleak
Added in cvmain