resize feature for images type
some fixes about resize feature