If what is meant by your words âpictures are haraamâ is photographs, this matter has been discussed previously in the answers to questions no. 13633, 10668 and 7918.
Drawing pictures of animate beings by hand is haraam. See question no. 39806.
You do not say anything in your question about the content of this book. If the book is an advertisement for the activities of the riba-based bank, then printing it is haraam because that involves helping the bank to deal in riba. Allaah says (interpretation of the meaning):
âHelp you one another in Al‑Birr and At‑Taqwa (virtue, righteousness and piety); but do not help one another in sin and transgressionâ
So it is not permissible to accept any payment at all, and you should donate all income from this project to charity.
But if the content of the book is permissible and by printing the book you are not helping the bank in its haraam activities or doing advertising for them, then take out of the money enough to purify it, i.e., the payment for printing haraam pictures. We ask Allaah to compensate you with something better, for whoever gives up something for the sake of Allaah, Allaah will compensate him with something better than that. And Allaah knows best.