Get image when you change the size of frame by mouse