RewriteEngine On
RewriteBase /userbar/
RewriteRule ^userbar-([0-9]*).png$ userbar.php?id=$1 [L,NC]