Plugin now checks for duplicate image IDs.

Fixes #20