Improve bitmap cloning

This should also fix inputBitmap resource leak
Fix a bitmap resource leak

This should fix CID18152
Dispose not used bitmap

This should fix CID 18165
Use a lightweight timer to delay task

This should also fix CID18182
Fix another bitmap resource leak

This should fix CID18192