Add image handling to ebooks