This commit fixes a bug where images would be created with empty tags. Acceptance tests were also tidied up.