Added simple support for deleting images.

This replaces pull #19 as I had deleted the forked repo since creating that pull request.

This contains the rebase requested by @vieux.