adds a rewrite rule to serve images from URLs without the folder name