rewrite rules

rewrite rules for images are added