shrink size to fit low resolution, fix some bugs