Compile images into separate folder


I use scrivener to compile mmd to latex. It works fine, generally.
When I compile and use either of the two methods (described here
a) drag the image into the text
b) use scrivener links
then scrivener puts the images and the latex file into the same directory.

Is it possible to make scrivener put the images into a dedicated folder (and the folder reside in the same level as the .tex document)?