Method for getting image