attempt at fixing incorrect routing of images