fix regexp for numbers, rewrite image href