make image references absolute