resize images on send fix