Fix file extension to be based on image url (not image name)
Ensure inner div wraps the image gallery