help to crop image according to the size you want