image resize, minor changes