Add test to reproduce issue #306
Images can be removed by short-hand ID. Solves #306.