Rewraming the Image Gallery URL – Webmaster Batch Exchange

I am using vbulletin and installed photoplog and this is my url:
and that's my category url

Rewrite URL I want

and that's my image url

Rewrite Url as follows:

now the questions I want to rewrite my image url so

The number 1027 is preset after installing photoplog

and this is already rewritten url. Demo link (not my website) (I would like to rewrite this category)

and rewrite this image URL (I would like that)