[TECHNICAL SUPPORT] LPS-32036 Legacy image gallery thumbnails aren't generated on the fly

Hey Iliyan,

It's not too easy to test, but this solution gets the problem fixed.

Regards,
Levi