image generation
correct generated img path with replace