fix large image size bug and size selection bug