fixes images to figures where caption exists