some stuff from image localizer to bookfunctions