Fix for reposonsive images (#27155077) by @ophian.