[ticket/12728] Enforce box model sizing on image attachment thumbnails

https://tracker.phpbb.com/browse/PHPBB3-12728

PHPBB3-12728