auto-hide spinner if image preview failed to load