Topic: Thumbnail and Large Path for each photo

Hello is it possible to specify the imagepath and thumbnail path for each image?

As the CMS i use creates a seperate folder for each image, so I cannot specify a single folder for the images.

<image>
    <filename>/media/1102/Photo01.jpg</filename>
    <Thumb>/media/1104/Photo01Thumb.jpg</Thumb>
    <caption>Arles old town.</caption>
</image>
<image>
    <filename>/media/1195/Photo02.jpg</filename>
    <Thumb>/media/156/Photo02Thumb.jpg</Thumb>
    <caption>Another photo.</caption>
</image>

Can anyone help me with this?
Warren