Save Art to File

Hi All,
It's been a while since I've played with scripts and am looking to make some updates. Is it possible to save an image to a file?

In addition to embedding art I would like to save art to the album folder so I could do something like the following:

embed album art at 600x600
save album art at 1024x1024 as "folder.jpg"
save album art at max res as "max album art.jpg"
save album artist art at max res as "max album artist.jpg"

I realize I can hack a solution together by embedding, resizing and exporting art but I prefer to avoid the hoops and leave the tags intact as much as possible (FLAC inflates tag size to accommodate additional data and doesn't necessarily give it back to you when you delete the data). Thanks in advance!