add image size support for books, worked around a segv in ruby (?!)