Fix overlay + layout auto resize

- Added close button
- Overlay was preventing close button to be clicked.
- Auto zoom (unprefixed) enabled when image w/h ratio doesn't match div
w/h ratio