the picture is regenerated on resize