add a small js code that allows the user to open images that have been resized with max-width in another tab seamlessly