reduce the size of imgs.