This version fixes the error message in device mode, when restoring an image that is not a multiple of 512 Bytes. These images can now be written in device mode as well. The problem came up with the new Debian Image for the Raspberry Pi. Thanks to user zoltan for reporting that issue.
Update: Seems like I forgot to upload the new file. This should be fixed now.