Double checked sprite removal function