Bug 949552 - Fix test_gallery_delete_image