prevent local images from overwriting online ones