url-rewriting, script to dl images, .htaccess setup