exit_on_out_click, centered with imgs fixed

- fixed possibility to exit if clicking out of window
- fixed the appeared window to be in the center even if they have images