[Image Viewer] Fixed issue with first click on the addon