Workaround for writeBitmapImageToFile

Exports elements by copying each of them off-screen, and uses saveArtboardOrSlice instead. This fixes #2.

There's also a change that fixes #1.