Fix file names for generated images