fix imaging.maxsize