rewrite module images