Code for get image from the book