Test for delete gallery image

This addresses issue #475