Fixes #721, allowing images previews enabled with lw_preview_image class to be closed by clicking outside the dialog box