Yeah I used ExternalFileUtil
and slightly modified it a little so all I had to do is pass in filepath and file extension instead of having to pass in the uti. So I made this change which will automatically lookup the correct uti based on what ever extension is passed in. for instance png will map to public.png saves me having to know all the uti's.
NSString *uti = (NSString *)UTTypeCreatePreferredIdentifierForTag(
(CFStringRef)[arguments objectAtIndex:1], NULL);
I will take a look at SaveToPhotoAlbumPhonegapPlugin, so thank for pointing me in that direction.
I have to say I love the fact you can edit these .h and .m files directly in icenium, the icing on the cake would be intellisense for these types of files too but can live without it.