fixed bug with gallery update if deletable image is visible