select local pic, check image size