Fixes image filenames.