Normalise image names to be relative (to MEDIA_ROOT) whenever possible

This prevents the same image getting more than one thumbnail. See https://github.com/mariocesar/sorl-thumbnail/issues/283 although this fix is the opposite to the one outlined there since this makes it possible to have things match between environments with a different MEDIA_ROOT. This is useful for if things are moved between machines and for writing tests.