Fixed open and close weak blocks
Added Removal of ImageViewer