Fixes jump links and vertical space on figure images.