Update for chaching images and mod rewrite optional