do small improvement of image resize