added mod rewrite and php GD