forked from contao-retina_optimizer and improved