Improved gallery image markup